namespace GuestBook.DataContext.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class InitCreate : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.GuestBookRecordModels",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        UserName = c.String(nullable: false, maxLength: 255),
                        HomePageUrl = c.String(),
                        Email = c.String(nullable: false, maxLength: 255),
                        Text = c.String(nullable: false),
                        UserIP = c.String(maxLength: 255),
                        UserBrowser = c.String(maxLength: 255),
                        CreatedAt = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.Id);            
        }
        
        public override void Down()
        {
            DropTable("dbo.GuestBookRecordModels");
        }
    }
}
